package zli.adapter.exampleLogin.v1;

/**
 * @author ZerlindaLi create at 2021/3/26 11:36
 * @version 1.0.0
 * @description PassportForThirdAdapter
 */
public class PassportForThirdAdapter extends PassportService implements IPassportForThird {
    @Override
    public ResultMsg loginForQQ(String openId) {
        return null;
    }

    @Override
    public ResultMsg loginForWechat(String openId) {
        return null;
    }

    @Override
    public ResultMsg loginForPhone(String phone, String code) {
        return null;
    }

    public ResultMsg loginForRegister(String username, String password) {
        if(null == password) {
            password = "THIRD_EMPTY";
        }
        super.register(username, password);
        return super.login(username, password);
    }
}
